<div class="portlet">
  <div class="portlet-header">
    <h1><%=t ".title"%></h1>
  </div>

  <div class="portlet-content">
    <% form_tag wish_lists_path, :method => 'get' do %>
      <table style="border:0px">
        <tr>
          <th> <%= label_tag t('activerecord.attributes.wish_list.user') %> </th>
          <th> <%= text_field_tag :search_user, params[:search_user] %> </th>
          <th> <%= submit_tag t('btn_search'), :name => nil %> </th>
        </tr>
      </table>
    <% end %>

    <div class="line-label">
      <%= page_entries_info(@wish_lists) %>
    </div>

    <% if @wish_lists.size > 0 %>
      <% paginated_section(@wish_lists, options_will_paginate) do %>
        <table>
          <thead>
            <tr>
              <th><%=t('activerecord.attributes.wish_list.user')%></th>
              <th><%=t('activerecord.attributes.wish_list.name')%></th>
              <th><%=t('activerecord.attributes.wish_list.type_list')%></th>
              <th><%=t('activerecord.attributes.wish_list.create_date')%></th>
              <th><%= t('title_actions') %></th>
            </tr>
          </thead>

          <tbody>
            <% @wish_lists.each do |wish_list| %>
              <tr>
                <td><%=h wish_list.user.email %></td>
                <td><%=h wish_list.name %></td>
                <td><%=h t(wish_list.type_list)%></td>
                <td><%=h wish_list.created_at.to_date %></td>


                <td class="action"><%= link_to t('wish_lists.index.btn_show_materials'), wish_list_materials_path(wish_list) %></td>
                <!--
                <td class="action"><%#= link_to t('btn_edit'), edit_wish_list_path(wish_list) %></td>
                <td class="action"><%#= link_to t('btn_destroy'), wish_list, :confirm => t('msg_sure_destroy?'), :method => :delete %></td>
                -->
              </tr>
            <% end %>
          </tbody>
        </table>
      <% end %>
    <% end %>

    <!--
    <div class="line-links">
      <%#= link_to t('wish_lists.index.btn_new_wish_list'), new_wish_list_path %>
    </div>
    -->
  </div>

  <div class="portlet-footer">
  </div>
</div>
